package com.ruoyi.behindExamination.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.behindExamination.mapper.DocExaminationMapper;
import com.ruoyi.behindExamination.domain.DocExamination;
import com.ruoyi.behindExamination.service.IDocExaminationService;

/**
 * 体检记录表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-14
 */
@Service
public class DocExaminationServiceImpl implements IDocExaminationService 
{
    @Autowired
    private DocExaminationMapper docExaminationMapper;

    /**
     * 查询体检记录表
     * 
     * @param examinationId 体检记录表主键
     * @return 体检记录表
     */
    @Override
    public DocExamination selectDocExaminationByExaminationId(Long examinationId)
    {
        return docExaminationMapper.selectDocExaminationByExaminationId(examinationId);
    }

    /**
     * 查询体检记录表列表
     * 
     * @param docExamination 体检记录表
     * @return 体检记录表
     */
    @Override
    public List<DocExamination> selectDocExaminationList(DocExamination docExamination)
    {
        return docExaminationMapper.selectDocExaminationList(docExamination);
    }

    /**
     * 新增体检记录表
     * 
     * @param docExamination 体检记录表
     * @return 结果
     */
    @Override
    public int insertDocExamination(DocExamination docExamination)
    {
        return docExaminationMapper.insertDocExamination(docExamination);
    }

    /**
     * 修改体检记录表
     * 
     * @param docExamination 体检记录表
     * @return 结果
     */
    @Override
    public int updateDocExamination(DocExamination docExamination)
    {
        return docExaminationMapper.updateDocExamination(docExamination);
    }

    /**
     * 批量删除体检记录表
     * 
     * @param examinationIds 需要删除的体检记录表主键
     * @return 结果
     */
    @Override
    public int deleteDocExaminationByExaminationIds(Long[] examinationIds)
    {
        return docExaminationMapper.deleteDocExaminationByExaminationIds(examinationIds);
    }

    /**
     * 删除体检记录表信息
     * 
     * @param examinationId 体检记录表主键
     * @return 结果
     */
    @Override
    public int deleteDocExaminationByExaminationId(Long examinationId)
    {
        return docExaminationMapper.deleteDocExaminationByExaminationId(examinationId);
    }
}
